package com.mind.invoice.service.impl;

import com.mind.invoice.domain.AjFileLibraryAttach;
import com.mind.invoice.mapper.AjFileLibraryAttachMapper;
import com.mind.invoice.service.IAjFileLibraryAttachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 稽核文件库附件信息表(AjFileLibraryAttach)表服务实现类
 *
 * @author wqy
 * @since 2025-05-23 16:38:10
 */
@Service("ajFileLibraryAttachService")
public class AjFileLibraryAttachServiceImpl implements IAjFileLibraryAttachService {
    @Autowired
    private AjFileLibraryAttachMapper ajFileLibraryAttachMapper;

    /**
     * 查询稽核文件库附件信息表信息集合
     *
     * @param ajFileLibraryAttach 稽核文件库附件信息表信息
     * @return 稽核文件库附件信息表信息集合
     */
    @Override
    public List<AjFileLibraryAttach> selectAjFileLibraryAttachList(AjFileLibraryAttach ajFileLibraryAttach) {
        return ajFileLibraryAttachMapper.selectAjFileLibraryAttachList(ajFileLibraryAttach);
    }

    /**
     * 通过稽核文件库附件信息表ID查询稽核文件库附件信息表信息
     *
     * @param ajFileLibraryAttachId 稽核文件库附件信息表ID
     * @return 角色对象信息
     */
    @Override
    public AjFileLibraryAttach selectAjFileLibraryAttachById(Long ajFileLibraryAttachId) {
        return ajFileLibraryAttachMapper.selectAjFileLibraryAttachById(ajFileLibraryAttachId);
    }

    /**
     * 删除稽核文件库附件信息表信息
     *
     * @param ajFileLibraryAttachId 稽核文件库附件信息表ID
     * @return 结果
     */
    @Override
    public int deleteAjFileLibraryAttachById(Long ajFileLibraryAttachId) {
        return ajFileLibraryAttachMapper.deleteAjFileLibraryAttachById(ajFileLibraryAttachId);
    }

    /**
     * 批量删除稽核文件库附件信息表信息
     *
     * @param ajFileLibraryAttachIds 需要删除的稽核文件库附件信息表ID
     * @return 结果
     */
    @Override
    public int deleteAjFileLibraryAttachByIds(Long[] ajFileLibraryAttachIds) {
        return ajFileLibraryAttachMapper.deleteAjFileLibraryAttachByIds(ajFileLibraryAttachIds);
    }

    /**
     * 新增保存稽核文件库附件信息表信息
     *
     * @param ajFileLibraryAttach 稽核文件库附件信息表信息
     * @return 结果
     */
    @Override
    public int insertAjFileLibraryAttach(AjFileLibraryAttach ajFileLibraryAttach) {
        return ajFileLibraryAttachMapper.insertAjFileLibraryAttach(ajFileLibraryAttach);
    }

    /**
     * 修改保存稽核文件库附件信息表信息
     *
     * @param ajFileLibraryAttach 稽核文件库附件信息表信息
     * @return 结果
     */
    @Override
    public int updateAjFileLibraryAttach(AjFileLibraryAttach ajFileLibraryAttach) {
        return ajFileLibraryAttachMapper.updateAjFileLibraryAttach(ajFileLibraryAttach);
    }

    /** 根据稽核文件id批量删除*/
    @Override
    public int deleteAjFileLibraryAttachByAjFileIds(Long[] ids) {
        return ajFileLibraryAttachMapper.deleteAjFileLibraryAttachByAjFileIds(ids);
    }

    @Override
    public int insertAjFileLibraryAttachBatch(List<AjFileLibraryAttach> ajFileLibraryAttachList) {
        return ajFileLibraryAttachMapper.insertAjFileLibraryAttachBatch(ajFileLibraryAttachList);
    }
}
